package com.link.base.microinterface.intercust.microservice;

import com.alibaba.fastjson.JSONObject;
import com.link.microservice.config.LinkFeignClientConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * 营销活动人群
 * @author 刘永枭
 */
@FeignClient(name = "LINK-MARKETING" , configuration = LinkFeignClientConfig.class)
public interface InterCustClient {

    /**
     * 插入营销人群
     * @param jsonObject
     * @return
     */
    @PostMapping("/insertICCrow")
    public Map<String, Object> insertICCrow(JSONObject jsonObject);

    /**
     * 更新数据根据ID只更新不需要更新到消费者上的信息
     * @param jsonObject
     * @return
     */
    @PostMapping("/updateByInteraction")
    public Map<String, Object> updateByInteraction(JSONObject jsonObject);

    /**
     * 更新渠道消费者id以及会员信息
     * @author 姚江漪
     * @date 2019/07/05 11:58
     * @param jsonObject 渠道消费者id及会员相关信息
     */
    @PostMapping(value = "/link/interCust/updateChannelMsg", produces = "application/json; charset=UTF-8")
    public Map<String, Object> updateChannelMsg(JSONObject jsonObject);
}
